<?php

namespace App\Http\Controllers\Api\Admin;

use Dingo\Api\Routing\Helpers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use JWTAuth;

class BaseController extends Controller
{
    //
    use Helpers;
    public $pageSize = 20;
    /****
     * BaseController constructor.
     */
    public function __construct()
    {

    }

    /**
     * 获取登录人的基本信息
     * @return [type] [description]
     */
    protected function getLoginInfo(){
        $user = JWTAuth::parseToken()->authenticate();
        return $user;
    }

}
